import axi from '../../../plugin/axios/axios'

//获取日志
export const getLogTypes = () => {
  return axi({
    url: '/api/v1/log/types',
    method: 'GET'
  })
}

//搜索日志
export const searchLog = params => {
  return axi({
    url: '/api/v1/log',
    method: 'GET',
    params
  });
}

//获取角色
export const getRoles = () => {
  return axi({
    url: '/api/v1/const/ROLES',
    method: 'GET'
  })
}
